use phf::phf_set;

static KEYWORD_SET: phf::Set<&str> = phf_set! {
    "return",
    "char","int","double","float","void","long","short","unsigned","signed","struct","enum","union",
    "if","else","goto","default","switch","case","for","do","while","break","continue",
};

static DATA_TYPE_SET: phf::Set<&str> = phf_set! {
    "char","int","double","float","void","long","short","unsigned","signed","struct","enum","union",
};

pub fn is_keyword(s : &str) -> bool {
    KEYWORD_SET.contains(s)
}

pub fn is_data_type(s : &str) -> bool {
    DATA_TYPE_SET.contains(s)
}

